package com.etone.smartAudit.service;

import com.alibaba.fastjson.JSON;
import com.etone.smartAudit.domain.CertificatePerson;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@Slf4j
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE)
public class PersonService {
    @Autowired
    private CertificatePersonService personService;

    @Autowired
    private AdminPermissionService adminPermissionService;

    @Test
    public void testPermission(){
        adminPermissionService.initPermission();
    }
    @Test
    public void getPerson(){
        CertificatePerson person = personService.getById(418);
        System.out.println(JSON.toJSONString(person));
    }
}
